<template>
	<div class="search">
		<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
		<input type="text" placeholder="请输入搜索的内容" />
		<button>搜索</button>
	</div>
</template>

<script>
export default {};
</script>

<style scoped>
.search {
	position: relative;
	text-align: center;
	margin-top: 0.2rem;
}
.search input {
	width: 90%;
	height: 0.8rem;
	background-color: #e1e1e1;
	border: none;
	border-radius: 0.1rem;
	padding-left: 0.5rem;
	outline: none;
}
.search input:focus {
	border: 2px solid skyblue;
}
.glyphicon-search {
	font-size: 0.24rem;
	position: absolute;
	left: 0.4rem;
	top: 0.3rem;
}
.search button {
	border: 0;
	background-color: #e1e1e1;
	font-size: 0.32rem;
	position: absolute;
	right: 0.45rem;
	top: 0.2rem;
}
</style>